<template>
  <div>
    v-model传参：子组件
    <button @click="handleClick">点击修改参数</button>
    <br />
    {{ props.isShow }}
  </div>
</template>

<script setup lang="ts">
import { defineProps, defineEmits } from 'vue';

const props = defineProps({
  isShow: {
    type: Boolean,
    default: false
  }
})
const emit = defineEmits(["update:isShow"])
const handleClick = () => {
  emit("update:isShow", !props.isShow)
}

</script>

<style scoped>

</style>